#include <iostream>
#include <string>
#include <jsoncpp/json/json.h>
using namespace std;

int main()
{
    Json::Value root;
    root["name"] = "张三";
    root["sex"] = "男";
    root["age"] = 18;

    string s = root.toStyledString();
    cout << s;
    return 0;
}